import { createRouter, createWebHashHistory } from "vue-router";
import DrawingRoom from "../components/DrawingRoom.vue";
import DiningRoom from "../components/DiningRoom.vue";
import Veranda from "../components/Veranda.vue";
import MasterBedroom from "../components/MasterBedroom.vue";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            component: DrawingRoom
        },
        {
            path: '/drawingRoom',
            component: DrawingRoom
        },
        {
            path: '/diningRoom',
            component: DiningRoom
        },
        {
            path: '/veranda',
            component: Veranda
        },
        {
            path: '/masterBedroom',
            components: {
                masterBedroom: MasterBedroom,
                default: MasterBedroom
            }
        },
        {
            path: '/sss',
            redirect: '/drawingRoom'
        }
    ]
})

export default router